#ifndef ___SPI_H___
#define ___SPI_H___

#include "stm32f10x.h"

//SPI3的IO在stm32的映射位置
//SPI3使用STM32F103VET6的GPIOB 的PIN^3^4^5^6
#define		SPI3_GPIO		GPIOB
#define		SPI3_CS			GPIO_Pin_6
#define		SPI3_SCK		GPIO_Pin_3
#define 	SPI3_MISO		GPIO_Pin_4
#define 	SPI3_MOSI		GPIO_Pin_5

//SPI2使用STM32F103VET6的GPIOB 的PIN^12^13^14^15
#define		SPI2_GPIO		GPIOB
#define		SPI2_CS			GPIO_Pin_12
#define		SPI2_SCK		GPIO_Pin_13
#define 	SPI2_MISO		GPIO_Pin_14
#define 	SPI2_MOSI		GPIO_Pin_15



//函数声明
extern void SPI3_Configuration(void);
extern void SPI2_Configuration(void);


#endif

